#encoding=utf-8

DIRS = { 'PY_WT_ROOT': '/usr/local/webtimer/pylog/',
         'ROOT': '/usr/local/webtimer/',
         'TAMPER_PATH':'/var/qgtamper/',
         'TAMPER_TMP_PATH':'/var/qgtamper/tmp/'
        }

       
       
# mysql config
MYSQL = { 'HOST': '127.0.0.1',
          'USER': 'root',
          'PASSWD': 'root',
          'DB': 'webscan',
          'PORT':'3306',
          'SIZE': 100
       }
# socket config  
SOCKET = { 'PORT': 10623,
           'REMOTE_PORT': 10624,
           'TIMEOUT': 60,
           'PROTIMEOUT': 30,
           'LISTEN': 50,
           'BUFSIZE':20480,
           'FPROTIMEOUT': 0.5,
           'DELAY':0.8,
           'COUNT':3,
           'INTERVAL':1
           }

     
###########################
#     日志显示控制，1为开启，0为关闭！
LOG = {
        'ERROR':1,
        'INFO':1,
        'DEBUG':0,
        'WARNING':0,
        'MONTHREAD':0,
        'TASKTHREAD':0
        }

# 监测项目的基本配置
ITEMCONFIG = {
              'httpcode':'200,201,202,204,205,206,207,302',
              'keywords':""
              }

# 安赛扫描设备基本配置
ASCONFIG = {            
            'ASURL': 'http://192.168.13.77/aiscanner/api.php',
            'PAGEURL': "/aiscanner/api.php",
            'USERNAME': 'admin',
            'PASSWORD' : '7c8b5fabc74dd6b9eba9a8b223a1d78a',
            'CALLBACK': 'http://192.168.13.60:8080/WebMonitor/CallbackServlet?id=$taskid',
            'PORT': 80
            }

ALARMTYPE = {
			'VULNERABILITY_ALARM': 1,
			'SENSITIVE_WORDS_ALARM': 2,
			'WEBSITE_STATUS_ALARM': 3,
			'PORT_STATUS_ALARM': 4,
			'PAGE_TAMPER_ALARM': 5,
			'DOWNLOAD_SPEEED_ALARM': 6,
			'RESPONSE_TIME_ALARM': 7,
			'HTML_LOAD_TIME_ALARM': 8
		}

CLUSTER = {
           'cluster':1
         }

MONITOR = {
           'maxprocessing':7,
           "vulscaning":"漏洞扫描", 
           "senwords":"敏感字",
           "restime":"响应时间",
           "htmlloadtime":"页面加载时间",
           "webalive":"网站可用性",
           "downloadspeed":"下载速度",
           "websiteport":"端口可用性",
           "pagetamper": "页面篡改"
		  }